﻿namespace Licens
{
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Ribbon;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class frmmain : RibbonForm
    {
        private BarButtonItem barButtonItem1;
        private BarButtonItem barButtonItem2;
        private IContainer components = null;
        private RibbonControl ribbon;
        private RibbonPage ribbonPage1;
        private RibbonPageGroup ribbonPageGroup1;
        private RibbonStatusBar ribbonStatusBar;

        public frmmain()
        {
            this.InitializeComponent();
        }

        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            new frmactivekey().ShowDialog();
        }

        private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
        {
            new frmcapkey().ShowDialog();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(frmmain));
            this.ribbon = new RibbonControl();
            this.barButtonItem1 = new BarButtonItem();
            this.barButtonItem2 = new BarButtonItem();
            this.ribbonPage1 = new RibbonPage();
            this.ribbonPageGroup1 = new RibbonPageGroup();
            this.ribbonStatusBar = new RibbonStatusBar();
            this.ribbon.BeginInit();
            base.SuspendLayout();
            //this.ribbon.ApplicationIcon = (Bitmap) manager.GetObject("ribbon.ApplicationIcon");
            this.ribbon.ExpandCollapseItem.Id = 0;
            this.ribbon.Items.AddRange(new BarItem[] { this.ribbon.ExpandCollapseItem, this.barButtonItem1, this.barButtonItem2 });
            this.ribbon.Location = new Point(0, 0);
            this.ribbon.MaxItemId = 3;
            this.ribbon.Name = "ribbon";
            this.ribbon.Pages.AddRange(new RibbonPage[] { this.ribbonPage1 });
            this.ribbon.Size = new Size(0x255, 0x90);
            this.ribbon.StatusBar = this.ribbonStatusBar;
            this.barButtonItem1.Caption = "Th\x00f4ng số";
            this.barButtonItem1.Id = 1;
            this.barButtonItem1.Name = "barButtonItem1";
            this.barButtonItem1.ItemClick += new ItemClickEventHandler(this.barButtonItem1_ItemClick);
            this.barButtonItem2.Caption = "Danh s\x00e1ch";
            this.barButtonItem2.Id = 2;
            this.barButtonItem2.Name = "barButtonItem2";
            this.barButtonItem2.ItemClick += new ItemClickEventHandler(this.barButtonItem2_ItemClick);
            this.ribbonPage1.Groups.AddRange(new RibbonPageGroup[] { this.ribbonPageGroup1 });
            this.ribbonPage1.Name = "ribbonPage1";
            this.ribbonPage1.Text = "Licens";
            this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem1);
            this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem2);
            this.ribbonPageGroup1.Name = "ribbonPageGroup1";
            this.ribbonPageGroup1.Text = "ribbonPageGroup1";
            this.ribbonStatusBar.Location = new Point(0, 0x1a2);
            this.ribbonStatusBar.Name = "ribbonStatusBar";
            this.ribbonStatusBar.Ribbon = this.ribbon;
            this.ribbonStatusBar.Size = new Size(0x255, 0x1f);
            base.AllowFormGlass = DefaultBoolean.False;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
//            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x255, 0x1c1);
            base.Controls.Add(this.ribbonStatusBar);
            base.Controls.Add(this.ribbon);
            //base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.Name = "frmmain";
            this.Ribbon = this.ribbon;
            base.StartPosition = FormStartPosition.CenterScreen;
            this.StatusBar = this.ribbonStatusBar;
            this.Text = "Cấp licens";
            this.ribbon.EndInit();
            base.ResumeLayout(false);
        }
    }
}

